/**
 * This file is Copyright © 2008 Software Craftsmen Limited. All Rights Reserved.
 */
package com.softwarecraftsmen.collections;

import com.softwarecraftsmen.collections.tuples.Pair;
import org.jetbrains.annotations.NotNull;

public interface MutableCollection<K, V>
{
	// Should it return a boolean (of our type) or should it throw an exception?
	void replaceIfPresent(final @NotNull K key, final @NotNull V value);

	// Should it return a boolean (of our type) or should it throw an exception?
	void replaceIfPresent(final @NotNull Pair<K, V> entry);
}
